﻿using System;

namespace Raider.WinForms.Actions
{
    /// <summary>
    /// Provides event arguments for <see cref="IAction.Executed"/> event handlers.
    /// </summary>
    public class ExecutedEventArgs : EventArgs
    {
        /// <summary>
        /// Gets <see cref="UpdateEventArgs"/> with no data.
        /// </summary>
        public new static readonly ExecutedEventArgs Empty = new ExecutedEventArgs();

        /// <summary/>
        public ExecutedEventArgs(object result = null)
        {
            Result = result;
        }

        /// <summary>
        /// Gets the result of the event invokation (optional).
        /// </summary>
        public object Result
        {
            get;
            private set;
        }
    }
}
